package qianting.news.wemedia.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import qianting.news.apis.models.wemedia.pojos.WmNews;
import qianting.news.wemedia.service.WmNewsAutoScanService;

@Api(tags = "测试管理")
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private WmNewsAutoScanService wmNewsAutoScanService;

    @ApiOperation(value = "自媒体文章审核")
    @GetMapping("autoScanWmNews")
    public void autoScanWmNews(Long id) {

        wmNewsAutoScanService.autoScanWmNews(id);

    }

}
